package com.itheima.pojo;

/**
 * @author huangbin
 * @date 2022/6/8 15:25
 *  员工实体类
 */
public class Employee {
    /**
     * 分类编号
     */
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 真实姓名
     */
    private String name;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private Integer phone;

    /**
     * 性别，0：女 1：男
     */
    private Integer sex;

    /**
     * 身份证号
     */
    private String idnumber;

    /**
     * 状态:0禁用 1启用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createtime;

    /**
     * 创建时间
     */
    private String updatetime;

    /**
     * 创建人
     */
    private String createuser;

    /**
     * 修改人
     */
    private String updateuser;

    /**
     * 认证令牌
     */
    private String token;

    public Employee() {
    }

    public Employee(Long id, String username, String name, String password, Integer phone, Integer sex, String idnumber, Integer status, String createtime, String updatetime, String createuser, String updateuser, String token) {
        this.id = id;
        this.username = username;
        this.name = name;
        this.password = password;
        this.phone = phone;
        this.sex = sex;
        this.idnumber = idnumber;
        this.status = status;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.createuser = createuser;
        this.updateuser = updateuser;
        this.token = token;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPhone() {
        return phone;
    }

    public void setPhone(Integer phone) {
        this.phone = phone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", phone=" + phone +
                ", sex=" + sex +
                ", idnumber='" + idnumber + '\'' +
                ", status=" + status +
                ", createtime='" + createtime + '\'' +
                ", updatetime='" + updatetime + '\'' +
                ", createuser='" + createuser + '\'' +
                ", updateuser='" + updateuser + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
